$("#save_btn").on('click',function () {

    var phone=$(" input[ name='mobile' ] ").val();
    var userName=$(" input[name='user_name'] ").val();

    var param={
        phone:phone,
        userName:userName,
        domain:window.document.domain
    };

    $.post("/forGet/restPassword",param,
        function (result) {
            if(result.code==1){
                $.toast("密码已发送请重新登录");
                setTimeout(function () {
                    window.location.href="/login";
                },2000)
            }else {
                $.toast(result.message);

            }


        }
    )

});